package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.UserSignInInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xuanqicheng
 * @create 2019-12-09:47
 */
@Repository
public class UserSignInInfoDao {

    @Autowired
    private SqlSession sqlSession;

    public UserSignInInfo getUserSignInfoByDay(int day) {
        return sqlSession.selectOne("getUserSignInfoByDay",day);
    }

    public List<UserSignInInfo> selectList() {
        return sqlSession.selectList("selectUserSignInList");
    }
}
